import service from '../config'

export default {
    getEmployeeList(data: any) {
        return service.get('/employee/page',{
            params: {
                name:data.name,
                page: data.page,
                pageSize: data.pageSize
            }
        });
    },
    AddEmployee(data: any) {
        return service.post('/employee', data);
    },
    deleteEmployee(data: any) {
        return service.delete('/employee', {
            params: {
                id: data.id
            }
        });
    },
    updateEmployee(data: any) {
        return service.put('/employee', data);
    }
} 
